package com.cskaoyan.controller.wxlogin;


import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.WXUserIndexVo;
import com.cskaoyan.service.AdminOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/user")
public class WXUserController {
    @Autowired
    AdminOrderService adminOrderService;

    @GetMapping("index")
    public BaseRespVo userIndex(){

        WXUserIndexVo indexVo = adminOrderService.getUserIndex();
        return BaseRespVo.ok(indexVo);
    }
}
